export default {
  namespaced: true, // 为了解决不同模块命名冲突的问题
  state: () => ({

    breaDcrumbList: [],
    // 保存ajax请求的source
    sourceList: [],
    // 正在上传的文件
    uploadIconList: [],
  }),
  getters: {},
  mutations: {
    getbdl(state, bdlobj) {
      switch (bdlobj.is) {
        case 1:
          state.breaDcrumbList.splice(bdlobj.index)
          break
        case 2:
          state.breaDcrumbList.push(bdlobj.arr)
          break
        case 3:
          state.breaDcrumbList.pop()
          break
        default:
          state.breaDcrumbList = bdlobj.arr
          break
      }
    },
    getuploadIconList(state, upobj) {
      state.uploadIconList = upobj.arr
      state.sourceList = upobj.souarr
    },
  },
  actions: {},
}
